# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE

shortnames =  [ "Aql","And","Scl","Ara","Lib","Cet","Ari","Sct","Pyx","Boo","Cae","Cha","Cnc","Cap","Car","Cas","Cen","Cep","Com","Cvn","Aur","Col","Cir","Crt","CrA","CrB","Crv","Cru","Cyg","Del","Dor","Dra","Nor","Eri","Sge","For","Gem","Cam","CMa","UMa","Gru","Her","Hor","Hya","Hyi","Ind","Lac","Mon","Lep","Leo","Lup","Lyn","Lyr","Ant","Mic","Mus","Oct","Aps","Oph","Ori","Pav","Peg","Pic","Per","Equ","CMi","LMi","Vul","UMi","Phe","Psc","PsA","Vol","Pup","Ret","Sgr","Sco","Ser","Sex","Men","Tau","Tel","Tuc","Tri","Tra","Aqr","Vir","Vel" ]

constellation_lines = [
    [582,579,579,576,579,568,568,580,591,580,568,555,555,551,568,556],
    [0,11,11,24,47,24,24,17,17,15],
    [685,18,18,681,681,685],
    [516,496,496,480,480,475,475,494,494,491,491,490,490,516],
    [444,432,432,419,419,412,412,416,416,432],
    [50,57,35,13,13,4,13,23,23,27,27,37,37,55,55,62,62,68,68,59,59,35,53,62,53,61,61,67,67,78,78,77,77,69,69,57,57,60,60,67],
    [72,48,48,43,43,39],
    [537,538,538,542,542,529,529,531,531,537],
    [256,261,261,267],
    [404,395,395,408,408,418,418,415,415,400,400,399,399,395,395,387,387,384],
    [120,126,126,127],
    [248,314,314,352],
    [264,260,260,249,260,262,262,247,262,269],
    [592,593,593,611,611,619,619,625,625,630,619,622,622,611,593,603,611,608],
    [277,302,302,316,316,317,317,325,325,321,321,311,311,305,305,279,258,250,250,197,276,279,276,258,197,203,250,242],
    [42,28,28,16,16,12,12,1],
    [403,391,391,382,382,388,388,389,389,386,386,385,385,380,380,377,385,393,386,401,401,414,388,365,365,356,356,346,346,335,335,336],
    [642,666,666,623,623,617,617,642,666,686,686,623],
    [374,375,375,355],
    [362,371],
    [180,179,179,148,148,140,140,138,153,138,153,180],
    [193,190,190,177,177,171,171,178,171,163,163,155],
    [406,425,406,420],
    [322,327,327,332,332,330,330,322,330,331,331,337,337,345,345,338,338,332],
    [534,546,546,549,549,557,557,560,560,561,561,559,559,553,553,545,534,530],
    [428,427,427,429,429,434,434,439,439,447,447,451],
    [359,357,357,351,351,348,348,347,348,363,363,357],
    [358,354,368,349],
    [563,570,570,575,575,594,594,600,594,604,604,613,613,627,594,583,583,571],
    [596,597,597,599,599,605,605,601,601,597],
    [166,173,173,159,159,166,159,121,121,111],
    [511,513,513,492,492,498,498,511,511,562,562,578,578,522,522,482,482,462,462,452,452,426,426,392,392,361,361,333],
    [456,460,460,463,463,453,453,460,453,456],
    [33,44,44,52,52,56,56,64,64,66,66,76,76,87,87,99,99,101,101,113,113,116,116,122,122,97,97,92,92,86,86,79,79,70,70,75,75,85,85,91,91,94,94,124,124,130,130,134,134,142,142,143,143,125],
    [574,577,577,573,577,584,584,589],
    [71,84],
    [202,219,219,228,228,227,227,206,228,235,235,239,235,240,235,230,230,222,222,234,222,210,222,204,204,199,204,195,195,189,189,183],
    [90,104,104,136,90,102,102,136,102,151],
    [211,218,218,213,213,205,205,217,217,220,220,224,224,229,215,216,216,220,216,212,212,201,201,200,201,194,201,205,215,208,192,215,213,211],
    [383,378,378,369,369,350,350,324,324,323,323,344,344,350,344,341,341,326,326,306,326,308,323,293,293,288,288,273,288,270,293,291,291,253,253,286,286,324],
    [675,650,650,638,638,659,659,677,677,675,659,672,659,664,638,635,635,632],
    [503,512,512,489,489,487,487,486,486,471,471,467,467,459,459,443,471,470,470,465,465,461,470,481,481,493,493,485,508,514,514,517,514,508,481,486],
    [109,65,65,80],
    [259,255,255,254,254,265,265,266,266,259,266,268,268,278,278,287,287,284,284,283,283,292,292,301,301,309,309,319,319,334,334,343,343,373,373,376],
    [7,98,98,63,63,54,54,45],
    [618,598,598,609,609,618],
    [643,652,652,651,651,648,648,647,647,654,654,651],
    [188,198,198,223,223,196,196,186,223,245,245,237],
    [184,176,176,167,167,158,158,145,158,172,172,165,165,154,154,141,158,154,145,149,145,146,141,145,146,144,149,150],
    [342,329,329,300,300,297,297,307,307,328,328,342,307,304,304,294,294,290,328,329],
    [442,455,455,449,449,442,449,431,431,423,423,424,423,413,431,433,433,417,417,405,417,402,405,397,405,413],
    [281,280,280,274,274,271,271,251,251,231,231,214,214,191],
    [532,535,535,539,539,550,550,541,541,535],
    [310,296],
    [616,610,610,607],
    [367,339,339,360,360,364,364,367],
    [626,661,661,398,398,626],
    [410,466,466,472],
    [500,506,483,506,500,479,479,458,458,469,469,483,483,495],
    [164,161,161,157,182,187,187,185,185,174,187,181,181,175,175,164,164,169,169,147,147,157,157,152,152,160,160,175,152,131,131,133,133,135,135,139,131,132,132,137,185,181],
    [595,621,621,602,602,590,590,595,590,586,586,533,533,547,547,590,547,540,540,524,524,518,518,540,518,507],
    [3,674,673,660,660,639,673,667,667,662,662,637,637,629,674,663,663,658,658,641,641,628,0,673,0,3],
    [207,170,170,168],
    [96,103,103,107,107,105,105,93,93,88,88,81,81,74,88,83,83,82,82,73],
    [612,614,614,620,620,615,615,612],
    [236,232],
    [320,312,312,298,298,289,298,320],
    [569,587],
    [58,497,497,473,473,435,435,457,457,422,422,411,411,435],
    [22,21,21,8,8,22,21,31,31,41,41,21,21,29,29,8,8,9,9,2,2,8],
    [19,25,19,26,26,25,25,32,32,36,36,46,46,40,40,34,34,30,30,20,20,14,14,6,6,689,689,687,687,688,688,683,683,679,679,684,684,687],
    [671,657,657,633,633,631,631,640,640,655,655,670],
    [238,221,221,244,244,238,244,225,244,252,252,272,272,244],
    [243,241,241,226,226,203,203,209,209,233,233,242,242,243],
    [110,112,112,106,106,95,95,110],
    [521,527,520,525,525,515,515,509,515,521,521,525,525,552,552,536,536,521,536,527,527,519,552,558,558,543,543,536,543,548,548,554,554,564,564,565,558,572,572,588,588,585,585,581,581,567,581,566],
    [499,505,505,510,510,501,501,484,484,478,478,477,477,476,476,468,468,464,464,450,464,448,464,454],
    [440,441,441,436,436,430,430,437,437,446,446,438,438,437,544,523,523,504,504,502,502,488],
    [313,299],
    [156,129],
    [153,128,128,118,123,162,114,115,114,108,108,89,123,118,123,119,119,114,118,117,117,115,115,100],
    [528,526],
    [645,680,680,5,680,10],
    [51,49,49,38,38,51],
    [474,421,421,445,445,474],
    [624,634,634,646,646,649,649,656,656,668,668,678,678,682,634,644,644,636,644,653,653,665,665,669,669,676,606,624],
    [340,353,353,366,366,379,379,394,394,396,396,407,379,381,381,390,390,409,381,370,370,372,370,366],
    [246,257,257,263,263,282,282,295,295,318,318,315,315,303,303,285,285,275,275,246],
]

star_positions = [2.09654,29.0908,2.29204,59.1502,2.35225,-45.747,3.30896,15.1836,4.857,-8.82383,5.00796,-64.8776,5.14942,8.19025,6.41333,-77.255,6.5505,-43.6799,6.57029,-42.3051,7.88567,-62.9581,9.83167,30.8612,10.1266,56.5374,10.8968,-17.9867,12.0722,7.29992,12.4535,41.0789,14.1771,60.7168,14.1879,38.4992,14.6515,-29.3575,15.7045,31.8043,15.7361,7.89008,16.5213,-46.7185,17.0961,-55.2458,17.1469,-10.1819,17.4325,35.6208,18.4373,24.5838,19.8666,27.2641,21.006,-8.18275,21.4525,60.2354,22.0914,-43.3177,22.5456,6.14394,22.8124,-49.0731,22.8708,15.3458,24.4281,-57.2367,25.358,5.48761,26.0214,-15.9396,26.3483,9.15764,27.865,-10.3349,28.2704,29.5794,28.3824,19.2941,28.3889,3.18747,28.4117,-46.3024,28.5987,63.6701,28.6598,20.8083,28.9868,-51.6096,29.6911,-61.5699,30.5117,2.76375,30.9747,42.3299,31.7929,23.4628,32.3855,34.9874,33.25,8.84675,33.9846,33.359,34.1271,-51.5121,34.8366,-2.97706,35.4376,-68.6594,36.4875,-12.2904,36.7462,-47.7038,37.0397,8.46008,37.9462,89.2641,38.022,-15.2443,38.9687,5.59331,39.8706,0.328528,39.8905,-11.8716,39.8968,-68.2669,39.9497,-42.8916,40.1649,-54.5499,40.1664,-39.8553,40.8255,3.23617,41.0306,-13.8587,41.2349,10.1142,41.2749,-18.5726,42.2723,-32.4063,42.4958,27.2608,42.6455,38.3189,42.6741,55.8955,44.1067,-8.89761,44.5655,-40.3047,44.9287,8.90739,45.5938,4.35286,45.5983,-23.6243,45.9038,-59.7376,46.1991,53.5064,46.2938,38.8405,47.0422,40.9556,48.0178,-28.9891,48.9585,-8.81983,49.879,-21.7579,49.9717,-43.0716,51.0806,49.8613,51.2035,9.02906,52.2672,59.9403,53.2351,-9.45831,53.4469,-21.6328,55.7312,47.7877,55.8123,-9.76519,56.0481,-64.8071,56.0797,32.2883,56.7125,-23.2484,56.8093,-74.2393,57.1493,-37.6201,57.2905,24.0535,57.3637,-36.2001,57.5895,71.3324,58.533,31.8837,59.356,63.0723,59.4634,40.0103,59.6864,-61.4001,59.7412,35.791,60.1701,12.4904,63.5003,-42.2939,63.606,-62.474,64.0062,-51.4871,64.1212,-59.3018,64.4734,-33.7983,64.948,15.6277,65.7335,17.5426,66.009,-34.017,66.3722,17.928,67.1539,19.1805,67.1653,15.8709,67.7087,-44.9538,68.4988,-55.045,68.8878,-30.5623,68.98,16.5098,69.0797,-3.35244,69.5453,-14.3036,70.1409,-41.8636,70.5144,-37.1448,70.5613,22.957,70.7665,-70.9311,71.3756,-3.25461,72.4589,6.96125,72.653,8.90025,72.8015,5.60511,73.2237,-5.45275,73.3448,2.50828,73.5125,66.3427,73.7237,10.1511,74.2484,33.1661,74.6371,1.71403,75.6195,41.0759,76.3652,-22.3709,76.9626,-5.08625,77.2866,-8.75408,78.0745,-11.8691,78.2328,-16.2054,78.3079,-12.9413,78.6345,-8.20164,79.1721,45.999,79.8939,-13.1768,79.996,-12.3156,80.6407,79.2308,81.2828,6.34972,81.5729,28.6079,82.0614,-20.7592,82.8031,-35.4704,82.9694,-76.3417,83.0017,-0.299083,83.1825,-17.8223,83.4063,-62.4899,83.7845,9.93417,84.0534,-1.20192,84.4112,21.1426,84.9123,-34.0741,85.1897,-1.94258,86.1165,-22.4475,86.1934,-65.7355,86.739,-14.8219,86.8212,-51.0667,86.9391,-9.66961,87.4566,-56.1665,87.7398,-35.7693,87.8298,-20.8775,88.5246,-63.091,88.5962,20.2764,88.7929,7.40703,89.1013,-14.168,89.3842,-35.2833,89.7866,-42.8151,89.8824,44.9474,89.9302,37.2128,90.5958,9.64736,90.864,19.6906,91.0301,23.2636,91.5389,-14.9353,91.893,14.7685,92.2412,2.49972,92.985,14.2088,93.7139,-6.27472,93.7196,22.5068,94.1381,-35.1407,94.9058,59.0109,95.0783,-30.0634,95.5285,-33.4363,95.675,-17.9559,95.74,22.5139,95.9421,4.59283,95.9879,-52.6957,97.2045,-7.03306,97.2408,20.2122,98.7641,-22.9648,99.1708,-19.2557,99.4279,16.3994,99.4403,-43.1959,100.983,25.1312,101.289,-16.7131,101.323,12.8961,102.048,-61.942,102.46,-32.5085,102.484,-50.6144,103.197,33.9614,103.548,-12.0386,103.554,-23.9284,104.034,-17.0543,104.319,58.4231,104.656,-28.9721,105.43,-27.9348,105.756,-23.8333,105.94,-15.6333,106.027,20.5703,107.098,-26.3932,107.187,-70.4992,107.785,30.2453,107.966,-0.492778,108.703,-26.7727,109.208,-67.9572,109.286,-37.0975,109.523,16.5405,110.031,21.9823,111.024,-29.3031,111.432,27.7983,111.679,49.2116,111.788,8.28942,112.308,-43.3019,113.65,31.8886,113.981,26.896,114.827,5.2275,115.312,-9.55108,115.455,-72.6061,116.112,24.3981,116.331,28.0263,117.257,-24.9123,120.896,-40.0032,121.886,-24.3044,121.983,-68.6171,122.149,-2.98378,122.383,-47.3366,124.129,9.18567,124.63,-76.92,125.016,27.2186,125.629,-59.5095,125.709,43.1884,126.434,-66.1365,127.567,60.7184,129.414,5.70381,129.689,3.34147,130.026,-35.3083,130.073,-52.922,130.154,-59.761,130.806,3.39867,130.822,21.4686,130.898,-33.1864,131.171,18.1549,131.176,-54.7086,131.674,28.76,131.694,6.41892,132.108,5.83789,132.633,-27.7101,133.849,5.94553,134.622,11.8578,134.804,48.0424,135.161,41.7834,135.612,-66.3958,135.907,47.1567,136.632,38.4523,136.999,-43.4326,137.742,-58.9669,138.301,-69.7175,138.591,2.31503,139.273,-59.2752,139.711,36.8029,140.264,34.3925,140.528,-55.0107,141.897,-8.65869,142.287,-2.76894,142.675,-40.4669,142.882,63.0618,142.996,-1.18467,143.218,51.6786,143.556,36.3976,146.463,23.7743,147.749,59.0391,147.869,-14.8466,148.026,54.0643,148.192,26.0071,149.216,-54.5678,149.718,-35.8909,151.833,16.7627,151.857,35.2447,151.985,-0.371639,152.094,11.9672,152.648,-12.3538,153.435,-70.0379,153.684,-42.1221,154.173,23.4173,154.271,-61.3323,154.275,42.9145,154.992,19.8419,155.582,41.4994,156.523,-16.8361,156.788,-31.0678,156.97,-58.7394,156.971,36.7075,157.573,-0.636972,158.868,-78.6078,159.326,-48.2256,160.739,-64.3945,160.885,-60.5666,161.692,-49.4201,162.406,-16.1941,163.328,34.2156,163.373,-58.8533,164.945,-18.2991,165.46,56.3823,165.933,61.7511,167.147,-58.9751,167.416,44.4986,167.915,-22.8256,168.527,20.524,168.56,15.4298,169.836,-14.7791,171.153,-10.8594,171.221,-17.684,172.851,69.3311,173.251,-31.8575,173.69,-54.2641,173.946,-63.0198,174.171,-9.80225,176.191,-18.3506,176.402,-66.7288,176.465,6.52981,176.513,47.7793,177.266,14.5723,178.227,-33.9081,178.457,53.6947,179.004,-17.1508,182.09,-50.7224,182.103,-24.7288,182.531,-22.6198,183.787,-58.7489,183.856,57.0326,183.952,-17.542,184.587,-79.3123,184.668,-0.787139,186.65,-63.0991,186.735,28.2686,187.01,-50.2306,187.467,-16.5151,187.791,-57.1126,188.019,-16.1959,188.117,-72.133,188.371,69.7882,188.438,41.3568,188.597,-23.3966,189.296,-69.1355,190.38,-48.9599,190.417,-1.44953,191.57,-68.1081,191.93,-59.6887,193.507,55.9598,193.902,3.39761,194.008,38.3182,195.545,10.9591,197.264,-23.118,197.498,17.5291,197.97,27.876,199.73,-23.1714,200.15,-36.7121,200.981,54.9254,201.298,-11.1613,202.761,-39.4073,203.674,-0.595944,204.972,-53.4664,206.886,49.3133,207.37,15.7978,207.376,-41.6877,207.404,-42.4737,208.671,18.3986,208.885,-47.2883,209.67,-44.8035,210.412,1.54458,210.956,-60.373,211.098,64.3758,211.672,-36.3687,213.224,-10.2741,213.918,19.1873,214.004,-5.99953,216.545,-45.3792,216.732,-83.6679,217.958,30.3711,218.02,38.3079,218.877,-42.1577,219.472,-49.4258,219.92,-60.8351,220.287,13.7283,220.482,-47.3881,220.628,-64.9746,220.765,-5.65742,221.247,27.0742,221.562,1.89294,221.966,-79.0447,222.677,74.1555,222.72,-16.0416,224.633,-43.1339,224.79,-42.1041,225.487,40.3906,226.018,-25.2819,228.072,-52.0991,228.875,33.3151,229.252,-9.38286,229.379,-58.8009,229.728,-68.6795,230.182,71.834,230.343,-40.6475,230.452,-36.2612,230.844,-59.3207,231.232,58.966,231.958,29.1055,233.232,31.3592,233.672,26.7149,233.701,10.5389,233.785,-41.1667,233.881,-14.7896,234.514,-42.5675,235.686,26.2955,236.014,77.7945,236.067,6.42553,236.547,15.4219,237.185,18.1418,237.399,26.0686,237.405,-3.43014,237.704,4.47758,237.74,-33.6271,238.167,42.45,238.456,-16.7296,238.787,-63.4297,239.112,15.6647,239.397,26.878,239.713,-26.1141,240.031,-38.3966,240.083,-22.6216,240.361,29.8511,240.474,58.5644,240.804,-49.2297,241.359,-19.8054,241.817,-36.7555,243.37,-54.6304,244.377,75.7547,244.58,-4.69261,244.935,46.3133,244.961,-50.1554,245.48,19.153,245.998,61.5141,246.796,-47.5547,247.352,-26.4319,247.555,21.4896,248.364,-78.897,248.526,42.4369,248.971,-28.216,249.29,-10.5671,250.323,31.6019,250.724,38.9225,250.773,-77.5166,251.492,82.0372,252.166,-69.0276,252.446,-59.0413,252.543,-34.2926,252.968,-38.0473,253.499,-42.362,254.418,9.37506,254.655,-55.9901,255.073,30.9263,257.197,65.7146,257.594,-15.7251,258.038,-43.2385,258.758,24.8396,258.762,36.8092,259.418,37.2913,260.207,-12.8469,260.921,37.1459,261.325,-55.5298,261.349,-56.3777,262.608,52.3014,262.685,26.1106,262.775,-60.6836,262.854,-23.9626,262.961,-49.876,263.054,86.5863,263.066,55.1728,263.402,-37.1037,263.733,12.5606,264.33,-42.9978,264.397,-15.3984,264.866,46.0063,265.354,-12.8752,265.622,-39.0299,265.868,4.56692,266.433,-64.7237,266.615,27.7225,266.89,-27.8307,266.896,-40.127,268.382,56.8724,269.063,37.2505,269.152,51.4889,269.441,29.2479,271.452,-30.4236,271.658,-50.0914,271.886,28.7625,272.145,-63.6681,273.441,-21.0588,274.407,-36.7613,275.248,-29.828,275.26,72.7337,275.329,-2.89711,275.807,-61.4939,276.043,-34.3843,276.743,-45.9683,276.993,-25.4212,277.207,-49.07,277.299,-14.5658,278.089,-39.7039,278.802,-8.24331,279.234,38.783,280.759,-71.4277,280.946,-38.3233,281.193,37.6051,281.414,-26.9908,281.794,-4.74783,281.871,-5.70508,282.52,33.3627,283.054,-62.1876,283.626,36.8986,283.68,-15.603,283.816,-26.2966,284.055,4.20353,284.071,-42.7106,284.169,-37.3432,284.238,-67.2335,284.432,-21.1066,284.681,-37.1071,284.736,32.6896,284.906,15.0685,285.653,-29.8801,285.778,-42.095,286.171,-21.7414,286.353,13.8637,286.562,-4.88233,286.604,-37.0628,286.735,-27.6698,287.087,-40.4966,287.368,-37.9043,287.507,-39.3407,288.138,67.6613,289.275,53.3682,289.409,-18.9529,290.418,-17.8472,290.804,-44.7996,290.971,-40.6156,291.374,3.11458,292.177,24.6652,292.426,51.7295,292.68,27.9597,294.007,-24.719,295.024,18.0139,295.262,17.4761,296.244,45.1307,296.565,10.6133,296.847,18.5343,297.043,70.2678,297.695,8.86739,298.118,1.00567,298.815,-41.8684,298.828,6.40794,299.077,35.0835,299.689,19.4921,299.934,-35.2762,300.147,-72.9102,300.275,27.7536,300.664,-27.7099,301.289,19.9909,302.174,-66.1793,302.826,-0.821472,304.513,-12.5449,305.253,-14.7814,305.557,40.2567,306.412,-56.7349,308.303,11.3033,309.387,14.5952,309.392,-47.2917,309.771,15.8382,310.358,45.2803,310.865,15.0747,311.24,-66.2032,311.524,-25.2705,311.552,33.9694,311.665,16.1248,311.919,-9.49569,312.492,-33.7797,312.955,-26.9191,313.702,-58.4541,315.323,-32.2578,316.487,-17.2327,317.585,10.1319,318.234,30.2271,318.62,10.0077,318.956,5.24808,319.484,-32.1725,319.644,62.5854,319.966,-53.4493,320.562,-16.8346,320.723,6.81111,321.61,-65.3681,321.667,-22.4114,322.165,70.5607,322.89,-5.57117,325.022,-16.6623,325.369,-77.3895,326.035,28.7432,326.046,9.875,326.161,25.645,326.76,-16.1266,326.934,-30.8983,328.482,-37.3648,330.209,-28.4538,331.446,-0.319833,331.529,-39.5431,331.609,-13.8695,331.752,25.3451,332.058,-46.9606,332.307,33.1725,332.535,-32.5484,332.549,6.19778,332.714,58.2012,333.992,37.7487,334.208,-7.78325,334.626,-60.2595,335.414,-1.38736,335.89,52.2295,336.129,49.4764,337.207,-0.0200556,337.317,-43.4956,337.383,47.7069,337.622,43.1234,337.662,-10.6779,337.822,50.2824,337.876,-32.346,338.839,-0.117361,340.164,-27.0436,340.365,10.8314,340.666,-46.8846,340.751,30.2213,341.516,-81.3816,341.633,23.5657,341.673,12.1741,342.138,-51.3167,342.398,-13.5925,342.42,66.2007,342.5,24.6017,343.154,-7.57967,343.663,-15.8208,343.987,-32.5397,344.412,-29.6218,345.22,-52.7541,345.943,28.0824,346.19,15.2054,346.72,-43.5203,347.361,-21.1725,347.589,-45.2466,348.972,-9.08769,349.29,3.28225,349.358,-58.2359,349.706,-32.5318,350.743,-20.1003,351.733,1.25583,351.992,6.37911,353.242,-37.8184,354.837,77.632,354.987,5.62736,355.512,1.78042,359.828,6.86358,]
star_positions = zip(star_positions[::2], star_positions[1::2])

